﻿<%@ Page Title="PeDALS public search demonstration" Language="C#" MasterPageFile="~/MasterPages/MasterPageSrch.master" AutoEventWireup="true" Inherits="Browse_ProvenanceDetail" Codebehind="ProvenanceDetail.aspx.cs" %>

<%@ Register assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div>
            <%--This code uses a DataBind to create the hyperlink from the data in the stored procedure and puts the Provenance and 
            Provenance Variant Names in a List and Passes ProvenanceId to the Provenance Detail screen to be used to look up the Provenance Detail Information--%>
            <h2><asp:Label ID="Label1" runat="server" Text="Text"></asp:Label></h2>
            <div>
            <b><asp:Label ID="Label2" runat="server" Visible="false" Text="Variant forms of the name:<br />"></asp:Label></b>
                <asp:Repeater ID="Repeater1" Visible="false" runat="server">
                <ItemTemplate>
                    <asp:Literal ID="Literal1" runat="server" Text = '<%# Eval("ProvenanceVariantName")%>'></asp:Literal>
                </ItemTemplate>
                </asp:Repeater>
                </div>
                
                <asp:Repeater ID="Repeater2" runat="server">
                    <ItemTemplate>
                    <b><asp:Label ID="Label3" runat="server" Text = "<br />Administrative History<br />"></asp:Label></b>
                  
                    <asp:Literal ID="Literal2" runat="server" Text = '<%# Eval("ProvenanceAdministrativeHistory")%>'></asp:Literal>

                    </ItemTemplate>
                </asp:Repeater>
                <b><asp:Label ID="Label4" runat="server" Visible = "true" Text = "<br />General Note<br />" ></asp:Label></b>

                    <asp:Literal ID="Literal3" runat="server" Visible = "true" Text = '<%# Eval("ProvenanceGeneralNote")%>'></asp:Literal>

                <b><asp:Label ID="Label5" runat="server" Text="<br /><br />Series<br />"></asp:Label></b>

                <asp:Repeater ID="Repeater3" runat="server">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl=<%# DataBinder.Eval(Container.DataItem, "SeriesId", "SeriesDetail.aspx?query={0}") %>> <%# DataBinder.Eval(Container.DataItem, "SeriesTitle") %></asp:HyperLink>
                    </ItemTemplate>
                </asp:Repeater>
        </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

